-- GENERATED SPELL FOR [Gzhun'tt] --


function spell0_17856(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_17856', 30287, 1)
end

function spell1_17856(pUnit, Event) --@Sporeskin,Self--
pUnit:FullCastSpellOnTarget(35230,pUnit)
pUnit:RegisterEvent('Sorts_17856', 611, 1)
end

function Sorts_17856(pUnit, Event)
local choix_sorts_17856 = math.random(0, 1)
if choix_sorts_17856 == 0 then
pUnit:RegisterEvent('spell0_17856', 1, 1)
end
if choix_sorts_17856 == 1 then
pUnit:RegisterEvent('spell1_17856', 1, 1)
end
end

function mob17856_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17856', math.random(1500, 3000), 1)
end

function mob17856_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17856_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17856_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17856, 1, 'mob17856_Action')
RegisterUnitEvent(17856, 2, 'mob17856_Leave')
RegisterUnitEvent(17856, 3, 'mob17856_Kill')
RegisterUnitEvent(17856, 4, 'mob17856_Die')
